package com.linchong.helloworld.controller;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @BelongsProject:helloworld
 * @BelongsPackage:com.linchong.helloworld.controller
 * @Author:linchong
 * @CreateTime:2018-09-05 08:50
 * @Description:helloworld
 */
@RestController
public class HelloWorldController {

    @RequestMapping("/index")
    public String index(){
        return "success";
    }

    @RequestMapping("/getMap")
    public Map<String,Object> getMap(){
        Map<String,Object> result = new HashMap<>();
        result.put("errorCode","200");
        result.put("errorMsg","成功");
        return result;
    }


}
